<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="sessionId" value="${sessionScope.userInfo.id}"></c:set>
<c:set var="id" value="${userInfo.roleid}"></c:set>
	<table class="table" id="tab">
		<tr>
			<th style="width:20px;" align="center">
				<s:checkbox id="doSelect" onclick="checkAllInfo();" name="checked" theme="simple"></s:checkbox>
			</th>
			<th style="width:40px;"><s:text name ="COMMON_LABEL_NUMBER"/></th>
			<th style="width:350px;"><s:text name ="CMS00001_LABEL_TASKNAME"/></th>
			<th style="width:40px;"><s:text name ="CMS00001_LABEL_WORKDATE"/></th>
			<th style="width:55px;"><s:property value="%{getText('COMMON_LABEL_DWESTIMATCOST')}" escape="false"/></th>
			<th style="width:40px;"><s:text name ="CMS00001_LABEL_COST"/></th>
			<th style="width:40px;"><s:text name ="COMMON_LABEL_PRIORITY"/></th>
			<th style="width:50px;"><s:property value="%{getText('CMS00001_LABEL_WORKTYPE')}" escape="false"/></th>
			<th style="width:50px;"><s:property value="%{getText('CMS00001_LABEL_PERCENTAGE')}" escape="false"/></th>
		</tr>
		<c:if test="${not empty dailyWorkBean.dwinfo}">
			<s:iterator value="dailyWorkBean.dwinfo" var="dw" status="stat">
				<tr>
					<td align="center" >
					<c:if test="${sessionId==dw.resourceId}">
					<s:checkbox name="dailyWorkBean.dwinfo[%{#stat.index}].checked" 
					value="dailyWorkBean.dwinfo[%{#stat.index}].checked" theme="simple"></s:checkbox>
					</c:if>
					<input type="hidden" 
					name="dailyWorkBean.dwinfo[<s:property 
					value="#stat.index"/>].id" 
					value="${dw.id}" 
					id="dailyWorkBean.dwinfo[<s:property 
					value="#stat.index"/>].id"/> 
					</td>
					<td class="tdString">${dw.wrNo}</td>
					<td class="tdString">${dw.taskName}</td>
					<td class="tdString">${dw.startDate}
					<input type="hidden" name="dailyWorkBean.dwinfo[<s:property 
					value="#stat.index"/>].startDate" 
					value="${dw.startDate}" 
					id="dailyWorkBean.dwinfo[<s:property 
					value="#stat.index"/>].startDate"/></td>
					<td class="tdNumber" >${dw.expHrs}<input type="hidden" name="expHrs" value="${dw.expHrs}"/></td>
					<td class="tdNumber" >${dw.cost}<input type="hidden" name="cost" value="${dw.cost}"/></td>
					<td class="tdString">${dw.priority}</td>
					<td class="tdString">${dw.workType}</td>
					<td class="tdNumber" >${dw.percentage}</td>
				</tr>
			</s:iterator>
		</c:if>
	</table>
